package com.service;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @description:
 * @author: lipy
 * @create: 2020-08-30 10:20
 **/

public class Hello extends UnicastRemoteObject implements IHello {
    protected Hello() throws RemoteException {
        super();
    }

    @Override
    public String sayHello(String name) {
        System.out.println("hello name = " + name);
        return "hello "+ name;
    }
}
